package com.cqc.manage.controller;


import com.cqc.manage.entity.Equipment;
import com.cqc.manage.service.Imp.equipmentService.EquMessageService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/equ")
public class EquipmentController {




    @Autowired
    private EquMessageService equMessageService;


    /**
     * 获取所有设备列表
     * @return
     */
    @ApiOperation(value = "设备列表",notes = "设备列表1")
    @RequestMapping(value = "/getAllEqu",method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
    public List<Equipment> getAllEqu(){

        List<Equipment> equipment = equMessageService.getAllEqu();

        return equipment;
    }











}
